#include <iostream>
#include "Tcpserver.hpp"

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cerr << "请输入格式为： ./tcpserver port" << std::endl;
        exit(USAGE_ERR);
    }
    ENABLE_CONSOLE_LOG_STRATEGY();
        uint16_t port = std::stoi(argv[1]);

    Tcpserver server(port);
    server.Init();
    server.Run();
    
    return 0;
}